﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteAdmin.Master" AutoEventWireup="true" CodeBehind="CreateTicket.aspx.cs" Inherits="eproject_BusTicketOnline.CreateTicket" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>Create new ticket:</p>
    <table style="border-style: groove; width: 100%; line-height: normal;">
        <tr>
            <td style="width: 263px">
                Bus Id:</td>
            <td style="width: 267px">
                <asp:DropDownList ID="ddlBusId" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlBusId_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td style="width: 100px" >
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 263px">
                Payer Name:</td>
            <td style="width: 267px">
                <asp:DropDownList ID="ddlFullname" runat="server">
                </asp:DropDownList>
                <asp:Label ID="lblMemberId" runat="server" Visible="False"></asp:Label>
            </td>
            <td style="width: 449px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 263px">
                Place to Place:</td>
            <td style="width: 267px">
                <asp:Label ID="lblDeparturePlace" runat="server"></asp:Label>
                -<asp:Label ID="lblArrivePlace" runat="server"></asp:Label>
            </td>
            <td style="width: 449px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 263px">
                Day to Day:</td>
            <td style="width: 267px">
                <asp:Label ID="lblStartDay" runat="server"></asp:Label>
                -<asp:Label ID="lblEndDay" runat="server"></asp:Label>
            </td>
            <td style="width: 449px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 263px">
                Time:</td>
            <td style="width: 267px">
                <asp:Label ID="lblTime" runat="server"></asp:Label>
            </td>
            <td style="width: 449px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 263px">
                Price(not contain fee of age):</td>
            <td style="width: 267px">
                <asp:Label ID="lblPrice" runat="server"></asp:Label>
            </td>
            <td style="width: 449px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 263px">
                Passenger Name:</td>
            <td style="width: 267px">
                <asp:TextBox ID="txtFullName" runat="server"></asp:TextBox>
            </td>
            <td style="width: 449px" >
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtFullName" Display="Dynamic" 
                    ErrorMessage="Please input name !" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator2" runat="server" 
                    ControlToValidate="txtFullName" ErrorMessage="Name not valid !" ForeColor="Red" 
                    Operator="DataTypeCheck" Display="Dynamic"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 263px">
                Age of passenger:</td>
            <td style="width: 267px">
                <asp:DropDownList ID="ddlAge" runat="server">
                    <asp:ListItem>Less 5 year old</asp:ListItem>
                    <asp:ListItem>From 5 to 12</asp:ListItem>
                    <asp:ListItem>From 13 to 50</asp:ListItem>
                    <asp:ListItem>Above 50</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="width: 449px" >
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 263px">
                Seat:</td>
            <td style="width: 267px">
                <asp:Label ID="lblSeatId" runat="server"></asp:Label>
                <asp:Button ID="btnchoose" runat="server" Text="Choose a seat" 
                    onclick="btnchoose_Click" ValidationGroup="3" />
            </td>
            <td style="width: 449px" >
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 263px">
                <asp:Label ID="Label1" runat="server" ForeColor="Red" 
                    Text="You must fill all information !!!" Visible="False"></asp:Label>
            </td>
            <td style="width: 267px">
                <asp:Button ID="btnCreateTicket" runat="server" Text="Create Ticket" 
                    onclick="Button1_Click" />
            </td>
            <td style="width: 449px" >
                &nbsp;</td>
        </tr>
    </table>
    <p>
    <asp:Panel ID="Panel1" runat="server" Visible="False">
        <p>
            Please choose seat if you like:</p>
        <table style="border-style: double; width: 255px" bgcolor="#FFFFCC" dir="ltr" 
            rules="all">
            <tr>
                <td align="center" colspan="3" style="border-style: groove;">
                    BUS</td>
            </tr>
            <tr>
                <td align="center" style="border-style: groove; width: 458px">
                    <asp:RadioButton ID="seat1" runat="server" GroupName="Seat" Text="No.1" />
                </td>
                <td rowspan="12" style="border-style: groove; width: 720px">
                    &nbsp;</td>
                <td align="center" style="border-style: groove; width: 407px">
                    <asp:RadioButton ID="seat2" runat="server" GroupName="Seat" Text="No.2" />
                </td>
            </tr>
            <tr>
                <td align="center" style="border-style: groove; width: 458px">
                    <asp:RadioButton ID="seat3" runat="server" GroupName="Seat" Text="No.3" />
                </td>
                <td align="center" style="border-style: groove; width: 407px">
                    <asp:RadioButton ID="seat4" runat="server" GroupName="Seat" Text="No.4" />
                </td>
            </tr>
            <tr>
                <td align="center" style="border-style: groove; width: 458px">
                    <asp:RadioButton ID="seat5" runat="server" GroupName="Seat" Text="No.5" />
                </td>
                <td align="center" style="border-style: groove; width: 407px">
                    <asp:RadioButton ID="seat6" runat="server" GroupName="Seat" Text="No.6" />
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 458px">
                    &lt;- Exit Door</td>
                <td align="right" style="width: 407px">
                    Exit Door-&gt;</td>
            </tr>
            <tr>
                <td align="center" style="border-style: groove; width: 458px">
                    <asp:RadioButton ID="seat7" runat="server" GroupName="Seat" Text="No.7" />
                </td>
                <td align="center" style="border-style: groove; width: 407px">
                    <asp:RadioButton ID="seat8" runat="server" GroupName="Seat" Text="No.8" />
                </td>
            </tr>
            <tr>
                <td align="center" style="border-style: groove; width: 458px">
                    <asp:RadioButton ID="seat9" runat="server" GroupName="Seat" Text="No.9" />
                </td>
                <td align="center" style="border-style: groove; width: 407px">
                    <asp:RadioButton ID="seat10" runat="server" GroupName="Seat" Text="No.10" />
                </td>
            </tr>
            <tr>
                <td align="center" style="border-style: groove; width: 458px">
                    <asp:RadioButton ID="seat11" runat="server" GroupName="Seat" Text="No.11" />
                </td>
                <td align="center" style="border-style: groove; width: 407px">
                    <asp:RadioButton ID="seat12" runat="server" GroupName="Seat" Text="No.12" />
                </td>
            </tr>
            <tr>
                <td align="center" style="border-style: groove; width: 458px">
                    <asp:RadioButton ID="seat13" runat="server" GroupName="Seat" Text="No.13" />
                </td>
                <td align="center" style="border-style: groove; width: 407px">
                    <asp:RadioButton ID="seat14" runat="server" GroupName="Seat" Text="No.14" />
                </td>
            </tr>
            <tr>
                <td align="center" style="border-style: groove; width: 458px">
                    <asp:RadioButton ID="seat15" runat="server" GroupName="Seat" Text="No.15" />
                </td>
                <td align="center" style="border-style: groove; width: 407px">
                    <asp:RadioButton ID="seat16" runat="server" GroupName="Seat" Text="No.16" />
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 458px">
                    &lt;- Exit Door</td>
                <td align="right" style="width: 407px">
                    Exit Door -&gt;</td>
            </tr>
            <tr>
                <td align="center" style="border-style: groove; width: 458px">
                    <asp:RadioButton ID="seat17" runat="server" GroupName="Seat" Text="No.17" />
                </td>
                <td align="center" style="border-style: groove; width: 407px">
                    <asp:RadioButton ID="seat18" runat="server" GroupName="Seat" Text="No.18" />
                </td>
            </tr>
            <tr>
                <td align="center" style="border-style: groove; width: 458px">
                    <asp:RadioButton ID="seat19" runat="server" GroupName="Seat" Text="No.19" />
                </td>
                <td align="center" style="border-style: groove; width: 407px">
                    <asp:RadioButton ID="seat20" runat="server" GroupName="Seat" Text="No.20" />
                </td>
            </tr>
        </table>
        <br />
        <asp:Button ID="btnChoose0" runat="server" onclick="btnChoose_Click" 
            style="margin-left: 107px" Text="Choose this seat" ValidationGroup="5" />
    </asp:Panel>
    </p>
</asp:Content>
